package com.project.systemfront.controller;


import com.project.systemfront.common.Result;
import com.project.systemfront.pojo.Category;
import com.project.systemfront.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;


import java.util.List;


@RestController
@RequestMapping("/system/category")
public class CategoryController
{

    @Autowired
    private ICategoryService categoryService;
    @GetMapping
    public Result<List<Category>> getList()
    {
         Category category = new Category();
         category.setStatus(1);
        return Result.success(categoryService.selectCategoryList(category));
    }

}
